<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListGuestBook.aspx.cs" Inherits="Manage_Modle_GuestBook_ListGuestBook" %>
<%@ Register Src="~/Manage/UserControl/PagingCtrl.ascx" TagName="PagingCtrl" TagPrefix="UserControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../css/mainFrom.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" src="../../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="incontent">    
        <!--div class="con-tool" id="contool">
            <div class="tool">工具栏</div>
            <a href='EditGuestBook2.aspx?CatID=<%= strCateID %>&action=add' target="_self" id="a4">新建</a> 
        </div-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="content-table">
        <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
            <th class="thcenter" style="width:60px;">
                选择
            </th>
            <th class="thleft" style="width:305px;">
                标题
            </th>
            <th class="thcenter" style="width:100px;">
                时间
            </th>
            <th class="thcenter" style="width:60px;">
                状态
            </th>
            <th class="thcenter none" style="width:80px;">
                操作
            </th>
        </tr>
        <asp:Repeater ID="repIntor" runat="server" OnItemCommand="repnew_ItemCommand"  OnItemDataBound="repnew_ItemDataBound">
          <ItemTemplate>
                <tr style="background: #F2F2F2;" onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                    <td class="thcenterpad0" align="center">
                        <input type="checkbox" id="ID" name="ID" value='<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>'/>
                        <asp:HiddenField ID="hidID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>' />
                    </td>
                    <td><asp:Literal Text='<%# GetStrLeng(DataBinder.Eval(Container.DataItem, "GuestBook_Title").ToString())%>' runat="server" ID="Literal1" /></td>
                    <td class="thcenterpad0"><%# FormatDateTimeMy(DataBinder.Eval(Container.DataItem, "GuestBook_AddTime").ToString())%></td>
                    <td class="thcenterpad0"><asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/Manage/images/State_0"+DataBinder.Eval(Container.DataItem, "GuestBook_State")+".gif"%>' /></td>
                    <td class="thcenterpad0">
                    <img src="../../images/edit2.gif" width="16" height="16" style="CURSOR: hand" alt="编辑" onclick="location.href = 'EditGuestBook2.aspx?CatID=<%# DataBinder.Eval(Container.DataItem, "GuestBook_CateId")%>&ID=<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>&action=edit';"/>
                    
                    &nbsp;&nbsp;
                    <asp:LinkButton Text='<img src="../../images/ico_del.gif" width="16" height="16" style="CURSOR: hand" alt="删除"/>' runat="server" ID="HypDelete" CommandName="delete" />
                    </td>
                </tr>
          </ItemTemplate>
          <AlternatingItemTemplate>
            <tr onmouseover="setbg2(this)" onmouseout="setbg1(this)">
                <td class="thcenterpad0" align="center">
                        <input type="checkbox" id="ID" name="ID" value='<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>'/>
                        <asp:HiddenField ID="hidID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>' />
                    </td>
                    <td><asp:Literal Text='<%# GetStrLeng(DataBinder.Eval(Container.DataItem, "GuestBook_Title").ToString())%>' runat="server" ID="Literal1" /></td>
                    <td class="thcenterpad0"><%# FormatDateTimeMy(DataBinder.Eval(Container.DataItem, "GuestBook_AddTime").ToString())%></td>
                    <td class="thcenterpad0"><asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/Manage/images/State_0"+DataBinder.Eval(Container.DataItem, "GuestBook_State")+".gif"%>' /></td>
                    <td class="thcenterpad0">
                    <img src="../../images/edit2.gif" width="16" height="16" style="CURSOR: hand" alt="编辑" onclick="location.href = 'EditGuestBook2.aspx?CatID=<%# DataBinder.Eval(Container.DataItem, "GuestBook_CateId")%>&ID=<%# DataBinder.Eval(Container.DataItem, "GuestBook_Id")%>&action=edit';"/>
                    
                    &nbsp;&nbsp;
                    <asp:LinkButton Text='<img src="../../images/ico_del.gif" width="16" height="16" style="CURSOR: hand" alt="删除"/>' runat="server" ID="HypDelete" CommandName="delete" />
                    </td>
            </tr>          
          </AlternatingItemTemplate>
        </asp:Repeater>
    </table> 
    </div>
    <asp:HiddenField ID="hidAmount" runat="server" />
    <asp:HiddenField ID="hidSql" runat="server" />
    <div class="allopStyle">
         &nbsp;&nbsp;选择: <a href="javascript:void(0);" onclick="QuanXuan_Click()">全选</a> - <a href="javascript:void(0);" onclick="slcNo_click()">反选</a> - <a href="javascript:void(0);" onclick="QuXiao_Click()">不选</a>
         <asp:Button ID="btnDelete" runat="server" Text=" 批量删除 " CssClass="button" OnClientClick="return confirm('请慎用批量删除!')" OnClick="btnDelete_Click"/>
         <asp:Button ID="btnPass" runat="server" Text=" 通过审核 " CssClass="button" OnClick="btnPass_Click"/>
         <asp:Button ID="btnCancel" runat="server" Text=" 取消审核 " CssClass="button" OnClick="btnCancel_Click"/>
    </div>
    <div id="PanPage" class="pageStyle">
              <UserControl:PagingCtrl ID="pagingctrl" OnPageIndexChanged="BindRpt" runat="server" PageRange="10" />
    </div>
    </form>
</body>
</html>